from django.shortcuts import render
from django.http import HttpResponse
from .models import Job


# Create your views here.
def index(request):
    context = {
        'job_list': Job.objects.all()
    }
    return render(request, 'job/index.html', context)


def detail(request, job_id):
    context = {
        'job': Job.objects.get(pk=job_id)
    }
    return render(request, 'job/detail.html', context)
